package com.ec.log.api.config;

import com.ec.log.api.modules.log.feign.factory.LogFeignFallbackFactory;
import com.ec.log.api.modules.log.feign.fallback.LogFeignFallback;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

/**
 * @author Eric Lee
 * @Description:
 */
@Configuration
@Order(-2147483638)
public class FallbackConfiguration {
    public FallbackConfiguration() {
    }

    @Bean
    public LogFeignFallback logFeignFallback() {
        return new LogFeignFallback();
    }

    @Bean
    public LogFeignFallbackFactory logFeignFallbackFactory() {
        return new LogFeignFallbackFactory();
    }
}
